package com.natalia.excel.controller;

import com.natalia.excel.entity.EnumsRequest;
import lombok.extern.slf4j.Slf4j;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author yang
 **/
@Slf4j
@RestController
@RequestMapping("/enums")
public class EnumsController {

    @PostMapping({"/enums"})
    public String enums(@RequestBody @Validated EnumsRequest enumsRequest){
        return "请求测试...";
    }
}
